<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="../static/bootstrap.min.css" rel="stylesheet">
	<link href="../static/style.css" rel="stylesheet">
	<title>计算机网络综合实训</title>
</head>
<body>
	<div class="container">
		<div class="col-md-12 column">
			<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
				<div class="navbar-header">
					  <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
					  <span class="sr-only">Toggle navigation</span>
					  <span class="icon-bar"></span><span class="icon-bar"></span>
					  <span class="icon-bar"></span>
					  </button>
					  <a class="navbar-brand" href="#">华中科技大学</a>
				</div>
				<div class="collapse navbar-collapse" id="navbar-collapse">
					<ul class="nav navbar-nav">
						<li class="active"><a href="#">首页</a></li>
						<li><a href="/notice/0">通告</a></li>
						<li><a href="#">网络考试</a></li>
					</ul>
				</div>
			</nav>
		</div>
	</div>	

	<div class="container">
		<div class="col-md-2  visible-md visible-lg">
			<div class="sidebar-module">
				<h3>已有课程</h4>
				<ul>
					{% for class in classes %}
						<li class="li-class">{{ class[1] }}</li>
					{% endfor %}
				</ul>
			</div>
		</div>

		<div class="col-md-5">
			<div class="jumbotron">
				{% if notice|length == 0%}
					<h2>暂无公告</h2>
				{% else %}
					<h2><i>最新公告</i></h2>
					<br>
					<h4>{{notice[3]}}</h4>
					<br>
					<p><a href="/notice/0">{{notice[1]}}</a>
				{% endif %}
			</div>
		</div>

		<div class="col-md-4">
				<form role="form" action="login" method="post" onsubmit="return InputCheck(this)">
					<div class="form-group">
						<label for="name">用户名</label>
						<input type="text" name="name" class="form-control input-lg-2" placeholder="用户名为学号">
					</div>
					<div class="form-group">
						<label for="password">密码</label>
						<input type="password" name="password" class="form-control" placeholder="初始密码为学号">
					</div>
					{% for message in get_flashed_messages() %}
						<div  class="flash" style="color:red"> {{ message }} </div>
					{% endfor %}
					<div class="form-group">
						<div class="col-sm-offset-2 col-md-offset-2 col-xs-offset-4">
							<button type="submit" class="btn btn-primary col-sm-4 col-md-4">登录</button>
							<a onclick="alert('请联系管理员或老师！')" class="col-sm-offset-2 col-xm-offset-2 col-md-offset-2">忘记密码</a>
						</div>
					</div>
				</form>
			</div>
	</div>

	<footer class="footer">
		<div class="container">
			<p class="text-muted">Copyright © HUST SCHOOL, Powered By <a href="http://leonard-peng.github.io" target="_blank">彭佳伟</a> In 2015</p>
		</div>
	</footer>
	<script src="../static/jquery.min.js"></script>
	<script src="../static/bootstrap.min.js"></script>
</body>
</html>
